package com.situ.mall.service;

import java.util.List;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.entity.Category;
import com.situ.mall.entity.Order;
import com.situ.mall.entity.Product;

import freemarker.cache.StrongCacheStorage;

public interface IProductService {

	List<Product> list();

	ServerResponse deleteById(Integer id);

	ServerResponse deleteAll(String ids);

	ServerResponse add(Product product);

	ServerResponse pageList(Integer page, Integer limit);

	ServerResponse insertSelective(Product product);

	Product selectByPrimaryKey(int primarykey);

	ServerResponse updateByPrimaryKeySelective(Product record);

	List<Product> selectByCategoryId(Integer categoryId);
	
	Product selectByProductId(Integer productId);
}
